<?php
		$iorderID=$_POST['iorderID'];
		$servername = "127.0.0.1";
		$username = "root";
		$password = "";
		$dbname = "OnlineDeliverOrderSystem_schema";
		// 创建连接
		$conn = new mysqli($servername, $username, $password, $dbname);
		// 检测连接
		if ($conn->connect_error) {
		    die("连接失败: " . $conn->connect_error);
		}
		
		$sequrySql=sprintf("SELECT * FROM `onlinedeliverordersystem_schema`.`order`WHERE `order`.`ID`='%s'",$iorderID);
		$result = mysqli_query($conn,$sequrySql);
		while($row = mysqli_fetch_array($result))
		{
			$arr = array ('ID'=>$row['ID'],'dishID'=>$row['dishID'],'shopID'=>$row['shopID'],'userID'=>$row['userID'],'amount'=>$row['amount'],'total'=>$row['total'],'status'=>$row['status']);
		}
		
		echo json_encode($arr);
		$conn->close();
?>